<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <title>WDS</title>
    <meta name="author" content="toko-002"/>
    <style type="text/css">
        tr {
            font-size: 7px;
        }
    </style>
</head>
<body>
<table>
    <tr>
        <td style="font-size: 12px">WDS</td>
    </tr>
    <tr>
        <td style="text-align: right;font-size: 12px" >管理番号{{$wdsInfor['wds_num']}}</td>
    </tr>
</table>

<div >
    <div style="text-align: center;font-size: 13px"  >廃棄物データシート（WDS）</div>
    <div style="font-size: 9px"> ※1 本データシートは廃棄物の成分等を明示するものであり、排出事業者の責任において作成して下さい。</div>
    <div style="font-size: 9px"> ※2 記入については、「廃棄物データシートの記載方法」を参照ください。</div>
    <table border="1px" style="">
        <tbody>
        <tr >
            <td colspan="10" style="text-align: center">作成日</td>
            <td colspan="19" style="color:black;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{$contractDate['year']}}
                &nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{$contractDate['month']}}
                &nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;{{$contractDate['day']}}&nbsp;&nbsp;日
            </td>
            <td colspan="3" style="text-align: center">記入者</td>
            <td colspan="17" style="color: black">  {{$hostName}}</td>
        </tr>
        <tr >
            <td colspan="2" rowspan="3" style="text-align: center;">1</td>
            <td colspan="8" rowspan="3" >
                <table>
                    <tr>
                        <td>排出事業者</td>
                    </tr>
                </table>
            </td>
            <td colspan="3" style="text-align: center;">名 称</td>
            <td colspan="16" style="color: black"> &nbsp;&nbsp;{{$contractReadyInfo['PartyA_corporate_or_organization_name']}}<!-- 株 式 会 社 --></td>
            <td colspan="3" style="text-align: center;">所 属</td>
            <td colspan="17" style="color: black">&nbsp;&nbsp;{{$contractReadyInfo['PartyA_principal_department']}} <!-- 部 --></td>
        </tr>
        <tr >
            <td colspan="3" rowspan="2" style="text-align: center;">所在地
            </td>
            <td colspan="16" rowspan="2" style="color: black">&nbsp;&nbsp;〒{{$contractReadyInfo['PartyA_postal_number']}}
                <br> &nbsp;&nbsp;{{$contractReadyInfo['PartyA_address']}}</td>
            <td rowspan="2" colspan="3" style="text-align: center;">担当者</td>
            <td colspan="5" rowspan="2" style="color: black">&nbsp;&nbsp;{{$contractReadyInfo['PartyA_principal_name']}}</td>
            <td colspan="2" style="text-align: center;color: black">TEL</td>
            <td colspan="10" style="color: black"> &nbsp;&nbsp;{{$contractReadyInfo['PartyA_principal_telephone']}}</td>
        </tr>

        <tr>
            <td colspan="2" style="text-align: center;color: black">FAX</td>
            <td colspan="10" style="color: black"> &nbsp;&nbsp;{{$contractReadyInfo['PartyA_Td_fax_number']}}</td>
        </tr>
        <tr>
            <td colspan="2" style="text-align: center">2</td>
            <td colspan="8">
                <table>
                    <tr>
                        <td>廃棄物の名称</td>
                    </tr>
                </table>
            </td>
            <td colspan="39">&nbsp;&nbsp;{{$wdsInfor['waste_disposal_name']}}</td>
        </tr>
        <?php
        $value5 = "□";
        if (!empty($wdsInfor['analysis_file_path'])) {
            $value5 = "☑";
        }
        ?>
        <tr>
            <td colspan="2" rowspan="3" style="text-align: center">3</td>
            <td colspan="8" rowspan="3">
                <table>
                    <tr>
                        <td>廃棄物の組成・成分情報（比率が高いと思われる順に記載</td>
                    </tr>
                    <tr>
                        <td><span style="color: black">{{$value5}}分析表添付</span></td>
                    </tr>
                    <tr>
                        <td><span style="color: black">(組成）</span></td>
                    </tr>
                </table>
            </td>
            <td colspan="22" rowspan="2" style="color: black">&nbsp;&nbsp;{{{$wdsInfor['waste_composition']}}}</td>
            <td  colspan="17">&nbsp;&nbsp;MSDSがある場合、CAS No.</td>
        </tr>
        <tr>
            <td colspan="17" style="color: black"><p>&nbsp;&nbsp;{{{$wdsInfor['Have_MSDS']}}}</p></td>
        </tr>
        <tr>
            <td colspan="39">・成分名と混合比率を書いて下さい。 ばらつきがある場合は範囲で構いません。
                ・商品名ではなく物質名を書いて下さい。重要と思われる微量物質も記入して下さい。
            </td>
        </tr>

        <?php
        $value10029 = "□"; //
        $value10030 = "□"; //
        $value10031 = "□"; //
        $value10032 = "□"; //
        $value10033 = "□"; //
        $value10034 = "□"; //
        $value10035 = "□"; //
        $value10036 = "□"; //
        $value10037 = "□"; //
        $value10038 = "□"; //
        $value10039 = "□"; //
        $value10040 = "□"; //
        $value10041 = "□"; //
        $value10042 = "□"; //
        $value10043 = "□"; //
        $value10044 = "□"; //
        $value10045 = "□"; //
        $value10046 = "□"; //
        $value10047 = "□"; //
        $value10048 = "□"; //
        $value10049 = "□"; //
        $value10051 = "□"; //
        $value10052 = "□"; //
        $value10053 = "□"; //
        $value10054 = "□"; //
        $value10055 = "□"; //
        $value10056 = "□"; //
        $value10057 = "□"; //
        $value10058 = "□"; //
        $value10059 = "□"; //
        $value10060 = "□"; //
        $value10061 = "□"; //
        $value10062 = "□"; //
        $value10063 = "□"; //
        $value10064 = "□"; //
        $value10065 = "□"; //
        $value10066 = "□"; //
        $value10067 = "□"; //
        $value10068 = "□"; //
        $value10070 = "□"; //
        $value10071 = "□"; //
        $value10072 = "□"; //
        $value30001 = "□"; //
        $value30002 = "□"; //
        if ($kindsOf['production'] === 1) {
            $value30001 = "☑";
        }
        if ($kindsOf['specialProduction'] === 1) {
            $value30002 = "☑";
        }
        if ($hazardousr['asbestos'] === 1) {
            $value10070 = "☑";
        }
        if ($hazardousr['hydrargyrum'] === 1) {
            $value10071 = "☑";
        }
        if ($hazardousr['hydrargyrumMuch'] === 1) {
            $value10072 = "☑";
        }
        if (!empty($wdsInfor['IwInfo'])) {
            if (empty($wdsInfor['IwInfo'][0])) {
                for ($x = 0; $x < sizeof($wdsInfor['IwInfo']) - 1; $x++) {
                    $arr = $wdsInfor['IwInfo'][$x + 1]['IW_detail_id'];
                    switch ($arr) {
                        case 10029:
                            $value10029 = "☑";
                            break;
                        case 10030:
                            $value10030 = "☑";
                            break;
                        case 10031:
                            $value10031 = "☑";
                            break;
                        case 10032:
                            $value10032 = "☑";
                            break;
                        case 10033:
                            $value10033 = "☑";
                            break;
                        case 10034:
                            $value10034 = "☑";
                            break;
                        case 10035:
                            $value10035 = "☑";
                            break;
                        case 10036:
                            $value10036 = "☑";
                            break;
                        case 10037:
                            $value10037 = "☑";
                            break;
                        case 10038:
                            $value10038 = "☑";
                            break;
                        case 10039:
                            $value10039 = "☑";
                            break;
                        case 10040:
                            $value10040 = "☑";
                            break;
                        case 10041:
                            $value10041 = "☑";
                            break;
                        case 10042:
                            $value10042 = "☑";
                            break;
                        case 10043:
                            $value10043 = "☑";
                            break;
                        case 10044:
                            $value10044 = "☑";
                            break;
                        case 10045:
                            $value10045 = "☑";
                            break;
                        case 10046:
                            $value10046 = "☑";
                            break;
                        case 10047:
                            $value10047 = "☑";
                            break;
                        case 10048:
                            $value10048 = "☑";
                            break;
                        case 10049:
                            $value10049 = "☑";
                            break;
                        case 10050:
                            $value10050 = "☑";
                            break;
                        case 10051:
                            $value10051 = "☑";
                            break;
                        case 10052:
                            $value10052 = "☑";
                            break;
                        case 10053:
                            $value10053 = "☑";
                            break;
                        case 10054:
                            $value10054 = "☑";
                            break;
                        case 10055:
                            $value10055 = "☑";
                            break;
                        case 10056:
                            $value10056 = "☑";
                            break;
                        case 10057:
                            $value10057 = "☑";
                            break;
                        case 10058:
                            $value10058 = "☑";
                            break;
                        case 10059:
                            $value10059 = "☑";
                            break;
                        case 10060:
                            $value10060 = "☑";
                            break;
                        case 10061:
                            $value10061 = "☑";
                            break;
                        case 10062:
                            $value10062 = "☑";
                            break;
                        case 10063:
                            $value10063 = "☑";
                            break;
                        case 10064:
                            $value10064 = "☑";
                            break;
                        case 10065:
                            $value10065 = "☑";
                            break;
                        case 10066:
                            $value10066 = "☑";
                            break;
                        case 10067:
                            $value10067 = "☑";
                            break;
                        case 10068:
                            $value10068 = "☑";
                            break;
                        case 10069:
                            $value10069 = "☑";
                            break;
                        case 10073:
                            $value10073 = "☑";
                            break;
                    }
                }
            } else {
                for ($x = 0; $x < sizeof($wdsInfor['IwInfo']); $x++) {
                    $arr = $wdsInfor['IwInfo'][$x]['IW_detail_id'];
                    switch ($arr) {
                        case 10029:
                            $value10029 = "☑";
                            break;
                        case 10030:
                            $value10030 = "☑";
                            break;
                        case 10031:
                            $value10031 = "☑";
                            break;
                        case 10032:
                            $value10032 = "☑";
                            break;
                        case 10033:
                            $value10033 = "☑";
                            break;
                        case 10034:
                            $value10034 = "☑";
                            break;
                        case 10035:
                            $value10035 = "☑";
                            break;
                        case 10036:
                            $value10036 = "☑";
                            break;
                        case 10037:
                            $value10037 = "☑";
                            break;
                        case 10038:
                            $value10038 = "☑";
                            break;
                        case 10039:
                            $value10039 = "☑";
                            break;
                        case 10040:
                            $value10040 = "☑";
                            break;
                        case 10041:
                            $value10041 = "☑";
                            break;
                        case 10042:
                            $value10042 = "☑";
                            break;
                        case 10043:
                            $value10043 = "☑";
                            break;
                        case 10044:
                            $value10044 = "☑";
                            break;
                        case 10045:
                            $value10045 = "☑";
                            break;
                        case 10046:
                            $value10046 = "☑";
                            break;
                        case 10047:
                            $value10047 = "☑";
                            break;
                        case 10048:
                            $value10048 = "☑";
                            break;
                        case 10049:
                            $value10049 = "☑";
                            break;
                        case 10050:
                            $value10050 = "☑";
                            break;
                        case 10051:
                            $value10051 = "☑";
                            break;
                        case 10052:
                            $value10052 = "☑";
                            break;
                        case 10053:
                            $value10053 = "☑";
                            break;
                        case 10054:
                            $value10054 = "☑";
                            break;
                        case 10055:
                            $value10055 = "☑";
                            break;
                        case 10056:
                            $value10056 = "☑";
                            break;
                        case 10057:
                            $value10057 = "☑";
                            break;
                        case 10058:
                            $value10058 = "☑";
                            break;
                        case 10059:
                            $value10059 = "☑";
                            break;
                        case 10060:
                            $value10060 = "☑";
                            break;
                        case 10061:
                            $value10061 = "☑";
                            break;
                        case 10062:
                            $value10062 = "☑";
                            break;
                        case 10063:
                            $value10063 = "☑";
                            break;
                        case 10064:
                            $value10064 = "☑";
                            break;
                        case 10065:
                            $value10065 = "☑";
                            break;
                        case 10066:
                            $value10066 = "☑";
                            break;
                        case 10067:
                            $value10067 = "☑";
                            break;
                        case 10068:
                            $value10068 = "☑";
                            break;
                        case 10069:
                            $value10069 = "☑";
                            break;
                        case 10073:
                            $value10073 = "☑";
                            break;
                    }
                }
            }
        }

        ?>
        <tr>
            <td colspan="2" style="text-align: center" rowspan="3">4</td>
            <td colspan="8" rowspan="2">
                <table>
                    <tr>
                        <td>廃棄物の種類</td>
                    </tr>
                    <tr>
                        <td>{{$value30001}}産業廃棄物</td>
                    </tr>
                </table>
            </td>
            <td colspan="39" style="color: black">
                <table>
                    <tr>
                        <td>{{$value10029}}&nbsp;&nbsp;燃えがら</td>
                        <td>{{$value10030}}&nbsp;&nbsp;汚泥</td>
                        <td>{{$value10031}}&nbsp;&nbsp;廃油</td>
                        <td>{{$value10032}}&nbsp;&nbsp;廃酸</td>
                        <td>{{$value10033}}&nbsp;&nbsp;廃アルカリ</td>
                    </tr>
                    <tr>
                        <td>{{$value10037}}&nbsp;&nbsp;繊維くず</td>
                        <td>{{$value10035}}&nbsp;&nbsp;紙くず</td>
                        <td>{{$value10036}}&nbsp;&nbsp;木くず</td>
                        <td>{{$value10034}}&nbsp;&nbsp;廃ﾌﾟﾗｽﾁｯｸ類</td>
                        <td>{{$value10038}}&nbsp;&nbsp;動植物性残さ</td>
                    </tr>
                    <tr>
                        <td>{{$value10048}}&nbsp;&nbsp;動物系固形不要物</td>
                        <td>{{$value10039}}&nbsp;&nbsp;ゴムくず</td>
                        <td>{{$value10040}}&nbsp;&nbsp;金属くず</td>
                        <td>{{$value10041}}&nbsp;&nbsp;ｶﾞﾗｽ･ｺﾝｸﾘｰﾄ･陶磁器くず</td>
                        <td>{{$value10042}}&nbsp;&nbsp;鉱さい</td>
                    </tr>
                    <tr>
                        <td>{{$value10043}}&nbsp;&nbsp;がれき類</td>
                        <td>{{$value10044}}&nbsp;&nbsp;家畜のふん尿</td>
                        <td>{{$value10045}}&nbsp;&nbsp;家畜の死体</td>
                        <td>{{$value10046}}&nbsp;&nbsp;ばいじん</td>
                        <td>{{$value10047}}&nbsp;&nbsp;13号廃棄物</td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="39" style="color: black">
                <table>
                    <tr>
                        <td>&nbsp;&nbsp;※廃棄物が以下のいずれかに該当する場合&nbsp;&nbsp;</td>
                    </tr>
                    <tr>
                        <td> {{$value10070}}石綿含有産業廃棄物 &nbsp;&nbsp;{{$value10071}}水銀使用製品産業廃棄物 &nbsp;&nbsp;{{$value10072}}水銀含有ばいじん等</td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td style="color: black" colspan="8">{{$value30002}}特別管理産業廃棄物</td>
            <td style="color: black" colspan="39">
                <table>
                    <tr>
                        <td colspan="2">{{$value10051}}&nbsp;&nbsp;引火性廃油</td>
                        <td colspan="2">{{$value10061}}&nbsp;&nbsp;鉱さい(有害)</td>
                        <td colspan="2">{{$value10058}}&nbsp;&nbsp;PCB等 </td>
                        <td colspan="2">{{$value10057}}&nbsp;&nbsp;感染性廃棄物</td>
                        <td colspan="3">{{$value10052}}&nbsp;&nbsp;引火性廃油(有害)</td>
                        <td colspan="3">{{$value10056}}&nbsp;&nbsp;強アルカリ(有害)</td>

                    </tr>
                    <tr>
                        <td colspan="2">{{$value10060}}&nbsp;&nbsp;指定下水汚泥</td>
                        <td colspan="2">{{$value10053}}&nbsp;&nbsp;強酸</td>
                        <td colspan="2">{{$value10065}}&nbsp;&nbsp;廃酸(有害)</td>
                        <td colspan="2">{{$value10063}}&nbsp;&nbsp;廃油(有害)</td>
                        <td colspan="3">{{$value10066}}&nbsp;&nbsp;廃アルカリ(有害)</td>
                        <td colspan="3">{{$value10068}}&nbsp;&nbsp;13号廃棄物(有害)</td>
                    </tr>
                    <tr>
                        <td colspan="2">{{$value10054}}&nbsp;&nbsp;強酸(有害)</td>
                        <td colspan="2">{{$value10059}}&nbsp;&nbsp;廃石綿等</td>
                        <td colspan="2">{{$value10064}}&nbsp;&nbsp;汚泥(有害)</td>
                        <td colspan="2">{{$value10055}}&nbsp;&nbsp;強アルカリ</td>
                        <td colspan="3">{{$value10062}}&nbsp;&nbsp;燃えがら(有害)</td>
                        <td colspan="3">{{$value10067}}&nbsp;&nbsp;ばいじん(有害)</td>
                    </tr>
                </table>
            </td>
        </tr>

        <tr>
            <td colspan="2" style="text-align: center">5</td>
            <?php
            $value4 = "□";
            if ($wdsInfor['specific_hazardous_substances_file'] !== '') {
                $value4 = "☑";
            }
            ?>
            <td colspan="8">
                <table>
                    <tr>
                        <td>特定有害廃棄物&nbsp;&nbsp;（&nbsp;&nbsp;&nbsp;）には混入有りは○、無しは&nbsp;&nbsp;&nbsp;&nbsp;&times;、混入の可能性があれば△</td>
                    </tr>
                    <tr>
                        <td>{{$value4}}&nbsp;&nbsp;分析表添付</td>
                    </tr>
                    <tr>
                        <td>（廃棄物処理法）</td>
                    </tr>
                </table>
            </td>
            <td colspan="39">
                <table style="font-size: 6px">
                    <tr>
                        <td colspan="7">{{{$wdsInfor['1'][0]['IW_Specific_hazardous_substancesr_id']}}}</td>
                        <td colspan="2"> <span style="color:black;">(&nbsp;{{{$wdsInfor['1'][0]['contain_type']}}} )</span></td>
                        <td colspan="7">{{{$wdsInfor['1'][1]['IW_Specific_hazardous_substancesr_id']}}}</td>
                        <td colspan="2"> <span style="color:black;">(&nbsp;{{{$wdsInfor['1'][1]['contain_type']}}} )</span></td>
                        <td colspan="7">{{{$wdsInfor['1'][2]['IW_Specific_hazardous_substancesr_id']}}}</td>
                        <td colspan="2"> <span style="color:black;">(&nbsp;{{{$wdsInfor['1'][2]['contain_type']}}} )</span></td>
                    </tr>
                    <tr>
                        <td colspan="7">{{{$wdsInfor['1'][3]['IW_Specific_hazardous_substancesr_id']}}}</td>
                        <td colspan="2"> <span style="color:black;">(&nbsp;{{{$wdsInfor['1'][3]['contain_type']}}} )</span></td>
                        <td colspan="7">{{{$wdsInfor['1'][4]['IW_Specific_hazardous_substancesr_id']}}}</td>
                        <td colspan="2"> <span style="color:black;">(&nbsp;{{{$wdsInfor['1'][4]['contain_type']}}} )</span></td>
                        <td colspan="7">{{{$wdsInfor['1'][5]['IW_Specific_hazardous_substancesr_id']}}}</td>
                        <td colspan="2"> <span style="color:black;">(&nbsp;{{{$wdsInfor['1'][5]['contain_type']}}} )</span></td>
                    </tr>
                    <tr>
                        <td colspan="7">{{{$wdsInfor['1'][6]['IW_Specific_hazardous_substancesr_id']}}}</td>
                        <td colspan="2"> <span style="color:black;">(&nbsp;{{{$wdsInfor['1'][6]['contain_type']}}} )</span></td>
                        <td colspan="7">{{{$wdsInfor['1'][7]['IW_Specific_hazardous_substancesr_id']}}}</td>
                        <td colspan="2"> <span style="color:black;">(&nbsp;{{{$wdsInfor['1'][7]['contain_type']}}} )</span></td>
                        <td colspan="7">{{{$wdsInfor['1'][8]['IW_Specific_hazardous_substancesr_id']}}}</td>
                        <td colspan="2"> <span style="color:black;">(&nbsp;{{{$wdsInfor['1'][8]['contain_type']}}} )</span></td>
                    </tr>
                    <tr>
                        <td colspan="7">{{{$wdsInfor['1'][9]['IW_Specific_hazardous_substancesr_id']}}}</td>
                        <td colspan="2"> <span style="color:black;">(&nbsp;{{{$wdsInfor['1'][9]['contain_type']}}} )</span></td>
                        <td colspan="7">{{{$wdsInfor['1'][10]['IW_Specific_hazardous_substancesr_id']}}}</td>
                        <td colspan="2"> <span style="color:black;">(&nbsp;{{{$wdsInfor['1'][10]['contain_type']}}} )</span></td>
                        <td colspan="7">{{{$wdsInfor['1'][11]['IW_Specific_hazardous_substancesr_id']}}}</td>
                        <td colspan="2"> <span style="color:black;">(&nbsp;{{{$wdsInfor['1'][11]['contain_type']}}} )</span></td>
                    </tr>
                    <tr>
                        <td colspan="7">{{{$wdsInfor['1'][12]['IW_Specific_hazardous_substancesr_id']}}}</td>
                        <td colspan="2"> <span style="color:black;">(&nbsp;{{{$wdsInfor['1'][12]['contain_type']}}} )</span></td>
                        <td colspan="7">{{{$wdsInfor['1'][13]['IW_Specific_hazardous_substancesr_id']}}}</td>
                        <td colspan="2"> <span style="color:black;">(&nbsp;{{{$wdsInfor['1'][13]['contain_type']}}} )</span></td>
                        <td colspan="7">{{{$wdsInfor['1'][14]['IW_Specific_hazardous_substancesr_id']}}}</td>
                        <td colspan="2"> <span style="color:black;">(&nbsp;{{{$wdsInfor['1'][14]['contain_type']}}} )</span></td>
                    </tr>
                    <tr>
                        <td colspan="7">{{{$wdsInfor['1'][15]['IW_Specific_hazardous_substancesr_id']}}}</td>
                        <td colspan="2"> <span style="color:black;">(&nbsp;{{{$wdsInfor['1'][15]['contain_type']}}} )</span></td>
                        <td colspan="7">{{{$wdsInfor['1'][16]['IW_Specific_hazardous_substancesr_id']}}}</td>
                        <td colspan="2"> <span style="color:black;">(&nbsp;{{{$wdsInfor['1'][16]['contain_type']}}} )</span></td>
                        <td colspan="7">{{{$wdsInfor['1'][17]['IW_Specific_hazardous_substancesr_id']}}}</td>
                        <td colspan="2"> <span style="color:black;">(&nbsp;{{{$wdsInfor['1'][17]['contain_type']}}} )</span></td>
                    </tr>
                    <tr>
                        <td colspan="7">{{{$wdsInfor['1'][18]['IW_Specific_hazardous_substancesr_id']}}}</td>
                        <td colspan="2"> <span style="color:black;">(&nbsp;{{{$wdsInfor['1'][18]['contain_type']}}} )</span></td>
                        <td colspan="7">{{{$wdsInfor['1'][19]['IW_Specific_hazardous_substancesr_id']}}}</td>
                        <td colspan="2"> <span style="color:black;">(&nbsp;{{{$wdsInfor['1'][19]['contain_type']}}} )</span></td>
                        <td colspan="7">{{{$wdsInfor['1'][20]['IW_Specific_hazardous_substancesr_id']}}}</td>
                        <td colspan="2"> <span style="color:black;">(&nbsp;{{{$wdsInfor['1'][20]['contain_type']}}} )</span></td>
                    </tr>
                    <tr>
                        <td colspan="7">{{{$wdsInfor['1'][21]['IW_Specific_hazardous_substancesr_id']}}}</td>
                        <td colspan="2"> <span style="color:black;">(&nbsp;{{{$wdsInfor['1'][21]['contain_type']}}} )</span></td>
                        <td colspan="7">{{{$wdsInfor['1'][22]['IW_Specific_hazardous_substancesr_id']}}}</td>
                        <td colspan="2"> <span style="color:black;">(&nbsp;{{{$wdsInfor['1'][22]['contain_type']}}} )</span></td>
                        <td colspan="7">{{{$wdsInfor['1'][23]['IW_Specific_hazardous_substancesr_id']}}}</td>
                        <td colspan="2"> <span style="color:black;">(&nbsp;{{{$wdsInfor['1'][23]['contain_type']}}} )</span></td>
                    </tr>
                    <tr>
                        <td colspan="7">{{{$wdsInfor['1'][24]['IW_Specific_hazardous_substancesr_id']}}}</td>
                        <td colspan="2"> <span style="color:black;">(&nbsp;{{{$wdsInfor['1'][24]['contain_type']}}} )</span></td>
                        <td colspan="7">{{{$wdsInfor['1'][25]['IW_Specific_hazardous_substancesr_id']}}}</td>
                        <td colspan="2"> <span style="color:black;">(&nbsp;{{{$wdsInfor['1'][25]['contain_type']}}} )</span></td>
                        <td colspan="7"></td>
                        <td colspan="2"></td>
                    </tr>
                </table>
            </td>
        </tr>

        <?php
        $value = "□";
        $value1 = "□";
        $value2 = "□";
        $value3 = "□";
        if ($wdsInfor['prtr_out'] === 0) {
            $value = "☑";
        } else {
            $value1 = "☑";
        }
        if ($wdsInfor['PRTR_commissioned_waste'] === 0) {
            $value2 = "☑";
        } else {
            $value3 = "☑";
        }
        ?>
        <tr>
            <td colspan="2" style="text-align: center">6</td>
            <td colspan="8">&nbsp;&nbsp;PRTR対象物質</td>
            <td colspan="39">
                <table>
                    <tr>
                        <td>&nbsp;&nbsp;届出事業所（<span style="color:black;" >{{$value}}該当 ・ {{$value1}}非該当</span>）、委託する廃棄物の該当・非該当（<span style="color:black;"> {{$value2}}該当 ・ {{$value3}}非該当</span>）</td>
                    </tr>
                    <tr>
                        <td> <span>※ 委託する廃棄物に第１種指定化学物質を含む場合、その物質名を書いて下さい。</span></td>
                    </tr>
                    <tr>
                        <td> <span style="color:black;">&nbsp;&nbsp;{{$wdsInfor['PRTR_text']}}</span></td>
                    </tr>
                </table>
            </td>
        </tr>

        <?php
        $value10129 = "□"; // ヘキサメチレンテトラミン（HMT）
        $value10130 = "□"; // 1,1-ジメチルヒドラジン（DMH）
        $value10131 = "□"; // N,N-ジメチルアニリン（DMAN）
        $value10132 = "□"; // トリメチルアミン（TMA）
        $value10133 = "□"; // テトラメチルエチレンジアミン（TMED）
        $value10134 = "□"; // N,N-ジメチルエチルアミン（DMEA）
        $value10135 = "□"; // ジメチルアミノエタノール（DMAE）
        $value10136 = "□"; // 1,1-ジメチルグアニジン（DMGu)
        if (!empty($wdsInfor['IWdisinproductprewatersources'])) {
            if (empty($wdsInfor['IWdisinproductprewatersources'][0])) {
                for ($x = 0; $x < sizeof($wdsInfor['IWdisinproductprewatersources']) - 1; $x++) {
                    $arr = $wdsInfor['IWdisinproductprewatersources'][$x + 1]['dppws_id'];
                    switch ($arr) {
                        case 10129:
                            $value10129 = "☑";
                            break;
                        case 10130:
                            $value10130 = "☑";
                            break;
                        case 10131:
                            $value10131 = "☑";
                            break;
                        case 10132:
                            $value10132 = "☑";
                            break;
                        case 10133:
                            $value10133 = "☑";
                            break;
                        case 10134:
                            $value10134 = "☑";
                            break;
                        case 10135:
                            $value10135 = "☑";
                            break;
                        case 10136:
                            $value10136 = "☑";
                            break;
                    }
                }
            } else {
                for ($x = 0; $x < sizeof($wdsInfor['IWdisinproductprewatersources']); $x++) {
                    $arr = $wdsInfor['IWdisinproductprewatersources'][$x]['dppws_id'];
                    switch ($arr) {
                        case 10129:
                            $value10129 = "☑";
                            break;
                        case 10130:
                            $value10130 = "☑";
                            break;
                        case 10131:
                            $value10131 = "☑";
                            break;
                        case 10132:
                            $value10132 = "☑";
                            break;
                        case 10133:
                            $value10133 = "☑";
                            break;
                        case 10134:
                            $value10134 = "☑";
                            break;
                        case 10135:
                            $value10135 = "☑";
                            break;
                        case 10136:
                            $value10136 = "☑";
                            break;
                    }
                }
            }
        }
        ?>
        <tr>
            <td colspan="2" style="text-align: center">7</td>
            <td colspan="8" >
                <table>
                    <tr>
                        <td>水道水源における</td>
                    </tr>
                    <tr>
                        <td>消毒副生成物</td>
                    </tr>
                    <tr>
                        <td>前駆物質</td>
                    </tr>
                </table>
            </td>
            <td colspan="39" style="color:black;font-size: 8px">
                <table>
                    <tr>
                        <td>{{$value10129}}ヘキサメチレンテトラミン（HMT）</td>
                        <td>{{$value10130}}1,1-ジメチルヒドラジン（DMH）</td>
                    </tr>
                    <tr>
                        <td>{{$value10133}}テトラメチルエチレンジアミン（TMED）</td>
                        <td>{{$value10135}}ジメチルアミノエタノール（DMAE）</td>
                    </tr>
                    <tr>
                        <td>{{$value10131}}N,N-ジメチルアニリン（DMAN）</td>
                        <td>{{$value10132}}トリメチルアミン（TMA）</td>
                    </tr>
                    <tr>
                        <td>{{$value10134}}N,N-ジメチルエチルアミン（DMEA）</td>
                        <td>{{$value10136}}1,1-ジメチルグアニジン（DMGu）</td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="2" style="text-align: center">8
            </td>
            <?php
            $otherFile = "□";
            if ($wdsInfor['other_contained_substances_file'] !== '') {
                $otherFile = "☑";
            }
            ?>
            <td colspan="8">
                <table>
                    <tr>
                        <td>その他含有物質&nbsp;&nbsp;&nbsp;&nbsp;（ ）には混入有りは○、無しは&times;、混入の可能性があれば△</td>
                    </tr>
                    <tr>
                        <td>{{$otherFile}} 分析表添付</td>
                    </tr>
                    <tr>
                        <td>(組成)</td>
                    </tr>
                </table>
            </td>
            <td colspan="39">
                <table>
                    <tr>
                        <td colspan="5">{{{$wdsInfor['2'][0]['iw_other_contained_id']}}}</td>
                        <td colspan="3"><span style="color:black;">(&nbsp;&nbsp;&nbsp;&nbsp;{{{$wdsInfor['2'][0]['other_text']}}}&nbsp;&nbsp;&nbsp;)</span></td>
                        <td colspan="5">{{{$wdsInfor['2'][1]['iw_other_contained_id']}}}</td>
                        <td colspan="3"><span style="color:black;">(&nbsp;&nbsp;&nbsp;&nbsp;{{{$wdsInfor['2'][1]['other_text']}}}&nbsp;&nbsp;&nbsp;)</span></td>
                        <td colspan="5">{{{$wdsInfor['2'][2]['iw_other_contained_id']}}}</td>
                        <td colspan="3"><span style="color:black;">(&nbsp;&nbsp;&nbsp;&nbsp;{{{$wdsInfor['2'][2]['other_text']}}}&nbsp;&nbsp;&nbsp;)</span></td>
                    </tr>
                    <tr>
                        <td colspan="5">{{{$wdsInfor['2'][3]['iw_other_contained_id']}}}</td>
                        <td colspan="3"><span style="color:black;">(&nbsp;&nbsp;&nbsp;&nbsp;{{{$wdsInfor['2'][3]['other_text']}}}&nbsp;&nbsp;&nbsp;)</span></td>
                        <td colspan="5">{{{$wdsInfor['2'][4]['iw_other_contained_id']}}}</td>
                        <td colspan="3"><span style="color:black;">(&nbsp;&nbsp;&nbsp;&nbsp;{{{$wdsInfor['2'][4]['other_text']}}}&nbsp;&nbsp;&nbsp;)</span></td>
                        <td colspan="5">{{{$wdsInfor['2'][5]['iw_other_contained_id']}}}</td>
                        <td colspan="3"><span style="color:black;">(&nbsp;&nbsp;&nbsp;&nbsp;{{{$wdsInfor['2'][5]['other_text']}}}&nbsp;&nbsp;&nbsp;)</span></td>
                    </tr>
                    <tr>
                        <td colspan="5">{{{$wdsInfor['2'][6]['iw_other_contained_id']}}}</td>
                        <td colspan="3"><span style="color:black;">(&nbsp;&nbsp;&nbsp;&nbsp;{{{$wdsInfor['2'][6]['other_text']}}}&nbsp;&nbsp;&nbsp;)</span></td>
                        <td colspan="5">{{{$wdsInfor['2'][7]['iw_other_contained_id']}}}</td>
                        <td colspan="3"><span style="color:black;">(&nbsp;&nbsp;&nbsp;&nbsp;{{{$wdsInfor['2'][7]['other_text']}}}&nbsp;&nbsp;&nbsp;)</span></td>
                        <td colspan="5">{{{$wdsInfor['2'][8]['iw_other_contained_id']}}}</td>
                        <td colspan="3"><span style="color:black;">(&nbsp;&nbsp;&nbsp;&nbsp;{{{$wdsInfor['2'][8]['other_text']}}}&nbsp;&nbsp;&nbsp;)</span></td>
                    </tr>
                    <tr>
                        <td colspan="5">{{{$wdsInfor['2'][9]['iw_other_contained_id']}}}</td>
                        <td colspan="3"><span style="color:black;">(&nbsp;&nbsp;&nbsp;&nbsp;{{{$wdsInfor['2'][9]['other_text']}}}&nbsp;&nbsp;&nbsp;)</span></td>
                        <td colspan="5">{{{$wdsInfor['2'][10]['iw_other_contained_id']}}}</td>
                        <td colspan="3"><span style="color:black;">(&nbsp;&nbsp;&nbsp;&nbsp;{{{$wdsInfor['2'][10]['other_text']}}}&nbsp;&nbsp;&nbsp;)</span></td>
                        <td colspan="5">{{{$wdsInfor['2'][11]['iw_other_contained_id']}}}</td>
                        <td colspan="3"><span style="color:black;">(&nbsp;&nbsp;&nbsp;&nbsp;{{{$wdsInfor['2'][11]['other_text']}}}&nbsp;&nbsp;&nbsp;)</span></td>
                    </tr>
                    <tr>
                        <td colspan="5">その他</td><td colspan="19"><span style="color:black;">(&nbsp;&nbsp;&nbsp;&nbsp;{{$wdsInfor['other_Free_Description']}}&nbsp;&nbsp;)</span></td>
                    </tr>
                </table>
            </td>
        </tr>
        <?php
        $dangerBodyYes = "□";
        $dangerBodyNO = "□";
        $dangerBodyDONTKNOW = "□";
        if ($wdsInfor['harmful_characteristics'] === 0) {
            $dangerBodyYes = "☑";
        } elseif ($wdsInfor['harmful_characteristics'] === 1) {
            $dangerBodyNO = "☑";
        } else {
            $dangerBodyDONTKNOW = "☑";
        }
        $value10150 = "□"; //引火性（℃）
        $value10151 = "□"; //可燃性
        $value10152 = "□"; //自然発火性（℃）
        $value10153 = "□"; //禁水性 c
        $value10154 = "□"; //酸化性
        $value10155 = "□"; //有機過酸化物
        $value10156 = "□"; //急性毒性
        $value10157 = "□"; //感染性
        $value10158 = "□"; //腐食性
        $value10159 = "□"; //毒性ガス発生
        $value10160 = "□"; //慢性毒性
        $value10161 = "□"; //生態毒性
        $value10162 = "□"; //重合反応性
        $value10203 = "□"; // 爆発性
        $value10163 = "□"; // その他
        $value1 = '   ';
        $value2 = '   ';
        $valueText = '';
        if (!empty($wdsInfor['IwHarmfulCharacteristic'])) {
            if (empty($wdsInfor['IwHarmfulCharacteristic'][0])) {
                for ($x = 0; $x < sizeof($wdsInfor['IwHarmfulCharacteristic']) - 1; $x++) {
                    $arr = $wdsInfor['IwHarmfulCharacteristic'][$x + 1]['harmful_characteristics_id'];
                    switch ($arr) {
                        case 10150:
                            $value10150 = "☑";
                            $value1 = $wdsInfor['IwHarmfulCharacteristic'][$x + 1]['harmful_characteristics_text'];
                            break;
                        case 10151:
                            $value10151 = "☑";
                            break;
                        case 10152:
                            $value10152 = "☑";
                            $value2 = $wdsInfor['IwHarmfulCharacteristic'][$x + 1]['harmful_characteristics_text'];
                            break;
                        case 10153:
                            $value10153 = "☑";
                            break;
                        case 10154:
                            $value10154 = "☑";
                            break;
                        case 10155:
                            $value10155 = "☑";
                            break;
                        case 10156:
                            $value10156 = "☑";
                            break;
                        case 10157:
                            $value10157 = "☑";
                            break;
                        case 10158:
                            $value10158 = "☑";
                            break;
                        case 10159:
                            $value10159 = "☑";
                            break;
                        case 10160:
                            $value10160 = "☑";
                            break;
                        case 10161:
                            $value10161 = "☑";
                            break;
                        case 10162:
                            $value10162 = "☑";
                            break;
                        case 10203:
                            $value10203 = "☑";
                            break;
                        case 10163:
                            $value10163 = "☑";
                            $valueText = $wdsInfor['IwHarmfulCharacteristic'][$x + 1]['harmful_characteristics_text'];
                            break;
                    }
                }
            } else {
                for ($x = 0; $x < sizeof($wdsInfor['IwHarmfulCharacteristic']); $x++) {
                    $arr = $wdsInfor['IwHarmfulCharacteristic'][$x]['harmful_characteristics_id'];
                    switch ($arr) {
                        case 10150:
                            $value10150 = "☑";
                            $value1 = $wdsInfor['IwHarmfulCharacteristic'][$x]['harmful_characteristics_text'];
                            break;
                        case 10151:
                            $value10151 = "☑";
                            break;
                        case 10152:
                            $value10152 = "☑";
                            $value2 = $wdsInfor['IwHarmfulCharacteristic'][$x]['harmful_characteristics_text'];
                            break;
                        case 10153:
                            $value10153 = "☑";
                            break;
                        case 10154:
                            $value10154 = "☑";
                            break;
                        case 10155:
                            $value10155 = "☑";
                            break;
                        case 10156:
                            $value10156 = "☑";
                            break;
                        case 10157:
                            $value10157 = "☑";
                            break;
                        case 10158:
                            $value10158 = "☑";
                            break;
                        case 10159:
                            $value10159 = "☑";
                            break;
                        case 10160:
                            $value10160 = "☑";
                            break;
                        case 10161:
                            $value10161 = "☑";
                            break;
                        case 10162:
                            $value10162 = "☑";
                            break;
                        case 10203:
                            $value10203 = "☑";
                            break;
                        case 10163:
                            $value10163 = "☑";
                            $valueText = $wdsInfor['IwHarmfulCharacteristic'][$x]['harmful_characteristics_text'];
                            break;
                    }
                }
            }
        }
        ?>
        <tr>
            <td colspan="2" style="text-align: center">9</td>
            <td colspan="8">
                <table>
                    <tr>
                        <td> 有害特性</td>
                    </tr>
                    <tr>
                        <td><span style="color:black;">({{$dangerBodyYes}}有・{{$dangerBodyNO}}無・{{$dangerBodyDONTKNOW}}不明 )</span></td>
                    </tr>
                </table>
            </td>
            <td colspan="39" style="color:black;">
                <table>
                    <tr>
                        <td>{{$value10203}}爆発性</td>
                        <td>{{$value10150}}引火性（{{$value1}}℃）</td>
                        <td>{{$value10151}}可燃性</td>
                        <td>{{$value10152}}自然発火性({{$value2}}℃）</td>
                    </tr>
                    <tr>
                        <td>{{$value10153}}禁水性</td>
                        <td>{{$value10154}}酸化性</td>
                        <td>{{$value10155}}有機過酸化物</td>
                        <td>{{$value10156}}急性毒性</td>
                    </tr>
                    <tr>
                        <td>{{$value10157}}感染性</td>
                        <td>{{$value10158}}腐食性</td>
                        <td>{{$value10159}}毒性ガス発生</td>
                        <td>{{$value10160}}慢性毒性</td>
                    </tr>
                    <tr>
                        <td>{{$value10161}}生態毒性</td>
                        <td>{{$value10162}}重合反応性</td>
                        <td colspan="2">{{$value10163}}その他（{{$valueText}})</td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="2" style="text-align: center">10</td>
            <td colspan="8">
                <table>
                    <tr>
                        <td> 廃棄物の物理的性状</td>
                    </tr>
                    <tr>
                        <td>・化学的性状</td>
                    </tr>
                </table>
            </td>
            <td colspan="39">
                <table>
                    <tr>
                        <td colspan="3">形状</td>
                        <td colspan="8"><span style="color:black;">（&nbsp;&nbsp;{{$wdsInfor['pwpcp_shape']}}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;）</span></td>
                        <td colspan="3">臭い</td>
                        <td colspan="8"><span style="color:black;" >（&nbsp;&nbsp;{{$wdsInfor['pwpcp_odor']}}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;）</span></td>
                        <td colspan="3">色</td>
                        <td colspan="8"><span style="color:black;">（&nbsp;&nbsp;{{$wdsInfor['pwpcp_color']}}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;）</span></td>
                        <td colspan="3">比重</td>
                        <td colspan="8"><span style="color:black;" >（&nbsp;&nbsp;{{$wdsInfor['pwpcp_specific_gravity']}}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;）</span></td>
                    </tr>
                    <tr>
                        <td colspan="3">pH</td>
                        <td colspan="8"><span style="color:black;">（&nbsp;&nbsp;{{$wdsInfor['pwpcp_pH']}}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;）</span></td>
                        <td colspan="3">沸点</td>
                        <td colspan="8"><span style="color:black;">（&nbsp;&nbsp;{{$wdsInfor['pwpcp_boiling_point']}}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;）</span></td>
                        <td colspan="3">融点</td>
                        <td colspan="8"><span style="color:black;">（&nbsp;&nbsp;{{$wdsInfor['pwpcp_Melting_point']}}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;）</span></td>
                        <td colspan="3">発熱量</td>
                        <td colspan="8"><span style="color:black;">（&nbsp;&nbsp;{{$wdsInfor['pwpcp_Calorific_value']}}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;）</span></td>
                    </tr>
                    <tr>
                        <td colspan="3">粘度</td>
                        <td colspan="8"><span style="color:black;">（&nbsp;&nbsp;{{$wdsInfor['pwpcp_viscosity']}}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;）</span></td>
                        <td colspan="3">水分</td>
                        <td colspan="30"><span style="color:black;">（&nbsp;&nbsp;{{$wdsInfor['pwpcp_moisture']}}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;）</span></td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="2" style="text-align: center">11</td>
            <td colspan="8" style="">
                <table>
                    <tr>
                        <td>品質安定性</td>
                    </tr>
                </table>
            </td>
            <?php
            $timeChangeHave = "□";
            $timeChangeNoHave = "□";
            $quality_stability_text = '';
            if ($wdsInfor['quality_stability'] === 0) {
                $timeChangeHave = "☑";
                $quality_stability_text = $wdsInfor['quality_stability_text'];
            } else {
                $timeChangeNoHave = "☑";
            }
            ?>
            <td  colspan="39">
                <table>
                    <tr>
                        <td>経時変化<span style=" color: black;">（&nbsp;&nbsp;{{$timeChangeHave}}有 ・ &nbsp;&nbsp;{{$timeChangeNoHave}}無&nbsp;&nbsp;）</span>&nbsp;&nbsp;&nbsp;有る場合は具体的に記入</td>
                    </tr>
                    <tr>
                        <td style="color: black">{{$quality_stability_text}}</td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="2" style="text-align: center">12</td>
            <td colspan="8">
                <table>
                    <tr>
                        <td>関連法規</td>
                    </tr>
                </table>
            </td>
            <?php
            $value10204 = "□"; //危険物（消防法）
            $value10205 = "□"; //特化則（特定化学物質障害予防規則）
            $value10206 = "□"; //有機溶剤
            $value10207 = "□"; //毒劇物
            $value10208 = "□"; //悪臭
            if (!empty($wdsInfor['RelatedLaws'])) {
                if (empty($wdsInfor['RelatedLaws'][0])) {
                    for ($x = 0; $x < sizeof($wdsInfor['RelatedLaws']) - 1; $x++) {
                        $arr = $wdsInfor['RelatedLaws'][$x + 1]['iw_related_laws_id'];
                        switch ($arr) {
                            case 10204:
                                $value10204 = "☑";
                                break;
                            case 10205:
                                $value10205 = "☑";
                                break;
                            case 10206:
                                $value10206 = "☑";
                                break;
                            case 10207:
                                $value10207 = "☑";
                                break;
                            case 10208:
                                $value10208 = "☑";
                                break;
                        }
                    }
                } else {
                    for ($x = 0; $x < sizeof($wdsInfor['RelatedLaws']); $x++) {
                        $arr = $wdsInfor['RelatedLaws'][$x]['iw_related_laws_id'];
                        switch ($arr) {
                            case 10204:
                                $value10204 = "☑";
                                break;
                            case 10205:
                                $value10205 = "☑";
                                break;
                            case 10206:
                                $value10206 = "☑";
                                break;
                            case 10207:
                                $value10207 = "☑";
                                break;
                            case 10208:
                                $value10208 = "☑";
                                break;
                        }
                    }
                }
            }
            ?>
            <td colspan="39" style=" color: black;"> &nbsp;&nbsp;{{$value10204}}危険物（消防法）・&nbsp;&nbsp;{{$value10205}}特化則（特定化学物質障害予防規則） ・&nbsp;&nbsp;{{$value10206}}有機溶剤 ・&nbsp;&nbsp;{{$value10207}}毒劇物 ・&nbsp;&nbsp;{{$value10208}}悪臭
            </td>
        </tr>
        <tr>
            <td colspan="2" style="text-align: center">13</td>
            <td colspan="8">
                <table>
                    <tr>
                        <td>荷姿</td>
                    </tr>
                </table>
            </td>
            <?php
            $box = "□";
            $car = "□";
            $other = "□";
            if ($wdsInfor['packing_container_flg'] == 1) {
                $box = "☑";
            }
            if ($wdsInfor['packing_vehicle_flg'] == 1) {
                $car = "☑";
            }
            if ($wdsInfor['packing_order_flg'] == 1) {
                $other = "☑";
            }
            ?>
            <td colspan="39" style=" color: black;"> &nbsp;&nbsp;{{$box}}
                容器（&nbsp;&nbsp;{{$wdsInfor['packing_container_text']}} ） &nbsp;&nbsp;{{$car}}車両（&nbsp;&nbsp;{{$wdsInfor['packing_vehicle_text']}}） &nbsp;&nbsp;{{$other}}
                その他（&nbsp;&nbsp;{{$wdsInfor['packing_order_text']}}）
            </td>
        </tr>
        <tr>
            <td colspan="2" style="text-align: center">14</td>
            <td colspan="8">
                <table>
                    <tr>
                        <td>排出頻度</td>
                    </tr>
                    <tr>
                        <td>数量</td>
                    </tr>
                </table>
            </td>
            <?php
            $sport = "□";
            $continue = "□";
            if ($wdsInfor['Discharge_frequency'] == 0) {
                $sport = "☑";
            } else {
                $continue = "☑";
            }
            $unit = '';
            $time = '';
            if ($wdsInfor['Discharge_quantity_unit'] == 10164) {
                $unit = 'kg';
            } elseif ($wdsInfor['Discharge_quantity_unit'] == 10165) {
                $unit = 'ｔ';
            } elseif ($wdsInfor['Discharge_quantity_unit'] == 10166) {
                $unit = '㍑';
            } elseif ($wdsInfor['Discharge_quantity_unit'] == 10167) {
                $unit = 'm3';
            } elseif ($wdsInfor['Discharge_quantity_unit'] == 10168) {
                $unit = '本';
            } elseif ($wdsInfor['Discharge_quantity_unit'] == 10169) {
                $unit = '缶';
            } elseif ($wdsInfor['Discharge_quantity_unit'] == 10170) {
                $unit = '袋';
            } elseif ($wdsInfor['Discharge_quantity_unit'] == 10171) {
                $unit = '個';
            } elseif ($wdsInfor['Discharge_quantity_unit'] == 10285) {
                $unit = '台';
            }
            if ($wdsInfor['Discharge_quantity_period'] == 10172) {
                $time = '年 ';
            } elseif ($wdsInfor['Discharge_quantity_period'] == 10173) {
                $time = '月';
            } elseif ($wdsInfor['Discharge_quantity_period'] == 10174) {
                $time = '週';
            } elseif ($wdsInfor['Discharge_quantity_period'] == 10175) {
                $time = '日';
            }
            ?>
            <td colspan="39">
                <table>
                    <tr>
                        <td>頻度<span style=" color: black;" >（ &nbsp;&nbsp;{{$sport}}スポット ・ &nbsp;&nbsp;{{$continue}}継続予定 ）</span></td>
                    </tr>
                    <tr>
                        <td><span>( &nbsp;&nbsp;{{$wdsInfor['Discharge_quantity']}}&nbsp;&nbsp; )</span>&nbsp;&nbsp;{{$unit}}<span>／ &nbsp;&nbsp;{{$time}}</span></td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="2" style="text-align: center">15</td>
            <td colspan="8">
                <table>
                    <tr>
                        <td>JIS C0950に規定する有害物質情報の表示に関する情報</td> </tr>
                    <tr>
                        <td>※参考</td>
                    </tr>
                    <tr>
                        <td>含有マーク</td>
                    </tr>
                    <tr>
                        <td>
                            <?php
                                $img = public_path()."/img/style/WDS/Image_002.jpg";
                            ?>
                                <img alt="logo black" src="{{$img}}"/>
{{--                                {{$img}}--}}
                        </td>
                    </tr>
                    <tr>
                        <td>グリーンマーク</td>
                    </tr>
                    <tr>
                        <td>
                            <?php
                                $img = public_path()."/img/style/WDS/Image_003.jpg";
                            ?>
                                <img alt="logo black" src="{{$img}}"/>
                        </td>
                    </tr>
                </table>
            </td>
            <?php
            $jisHave = "□";
            $jisNoHave = "□";
            if ($wdsInfor['JIS_C0950_flg'] == 0) {
                $jisHave = "☑";
            } else {
                $jisNoHave = "☑";
            }
            ?>
            <td colspan="39" style=" color: black;">
                <?php
                $value10176 = "□"; //廃パーソナルコンピュータ
                $value10177 = "□"; //廃ユニット形エアコンディショナー
                $value10178 = "□"; //廃テレビジョン受信機
                $value10179 = "□"; //廃電子レンジ
                $value10180 = "□"; //廃衣類乾燥機
                $value10181 = "□"; //廃電気冷蔵庫
                $value10182 = "□"; //廃電気洗濯機
                if (!empty($wdsInfor['IwJisC0950Info'])) {
                    if (empty($wdsInfor['IwJisC0950Info'][0])) {
                        for ($x = 0; $x < sizeof($wdsInfor['IwJisC0950Info']) - 1; $x++) {
                            $arr = $wdsInfor['IwJisC0950Info'][$x + 1]['iw_jis_C0950_id'];
                            switch ($arr) {
                                case 10176:
                                    $value10176 = "☑";
                                    break;
                                case 10177:
                                    $value10177 = "☑";
                                    break;
                                case 10178:
                                    $value10178 = "☑";
                                    break;
                                case 10179:
                                    $value10179 = "☑";
                                    break;
                                case 10180:
                                    $value10180 = "☑";
                                    break;
                                case 10181:
                                    $value10181 = "☑";
                                    break;
                                case 10182:
                                    $value10182 = "☑";
                                    break;
                            }
                        }
                    } else {
                        for ($x = 0; $x < sizeof($wdsInfor['IwJisC0950Info']); $x++) {
                            $arr = $wdsInfor['IwJisC0950Info'][$x]['iw_jis_C0950_id'];
                            switch ($arr) {
                                case 10176:
                                    $value10176 = "☑";
                                    break;
                                case 10177:
                                    $value10177 = "☑";
                                    break;
                                case 10178:
                                    $value10178 = "☑";
                                    break;
                                case 10179:
                                    $value10179 = "☑";
                                    break;
                                case 10180:
                                    $value10180 = "☑";
                                    break;
                                case 10181:
                                    $value10181 = "☑";
                                    break;
                                case 10182:
                                    $value10182 = "☑";
                                    break;
                            }
                        }
                    }
                }
                ?>
                <?php
                $up = "□";
                $dowm = "□";
                if ($wdsInfor['Production_import_time'] == 0) {
                    $up = "☑";
                } else {
                    $dowm = "☑";
                }
                ?>
                <?php
                $markHave = "□";
                $markNoHave = "□";
                if ($wdsInfor['Presence_inclusion_mark_etc'] == 0) {
                    $markHave = "☑";
                } else {
                    $markNoHave = "☑";
                }
                ?>
                <table>
                    <tr>
                        <td>①該当品目の有無（ &nbsp;&nbsp;{{$jisHave}}有 ・ &nbsp;&nbsp;{{$jisNoHave}}無 ）</td>
                    </tr>
                    <?php if ($wdsInfor['JIS_C0950_flg'] == 0) :?>
                    <tr>
                        <td>有る場合は該当する製品</td>
                    </tr>
                    <tr>
                        <td>
                            <table>
                                <tr>
                                    <td>{{$value10176}}廃パーソナルコンピュータ</td>
                                    <td colspan="2">{{$value10177}}廃ユニット形エアコンディショナー</td>
                                </tr>
                                <tr>
                                    <td>{{$value10178}}廃テレビジョン受信機</td>
                                    <td>{{$value10179}}廃電子レンジ</td>
                                    <td>{{$value10180}}廃衣類乾燥機</td>
                                </tr>
                                <tr>
                                    <td>{{$value10181}} 廃 電 気 冷 蔵 庫</td>
                                    <td colspan="2">{{$value10182}} 廃 電 気 洗 濯 機</td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>製造又は輸入時期</td>
                    </tr>
                    <tr>
                        <td>&nbsp;&nbsp;{{$up}}ア　平成１８年７月１日以降　　・　&nbsp;&nbsp;{{$dowm}}イ　平成１８年６月３０日以前 </td>
                    </tr>
                    <?php if ($wdsInfor['Production_import_time'] == 0) :?>
                    <tr>
                        <td>含有マーク等の有無 （ &nbsp;&nbsp;{{$markHave}}有 [含有マーク・グリーンマーク] ・ &nbsp;&nbsp;{{$markNoHave}}無）</td>
                    </tr>
                    <?php if ($wdsInfor['Presence_inclusion_mark_etc'] == 0) :?>
                    <tr>
                        <td>製品中添付位置（&nbsp;&nbsp;{{$wdsInfor['Product_attachment_position']}}）</td>
                    </tr>
                    <tr>
                        <td>情報掲載Webサイト（&nbsp;&nbsp;{{$wdsInfor['Information_posting_website']}}）</td>
                    </tr>
                    <?php endif;?>
                    <?php endif;?>
                    <?php endif;?>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="2" style="text-align: center">16</td>
            <?php
            $specialAttention = "□";
            $specialAttentionNo = "□";
            if ($wdsInfor['Special_note'] == 0) {
                $specialAttention = "☑";
            } else {
                $specialAttentionNo = "☑";
            }
            ?>
            <td colspan="8">
                <table>
                    <tr>
                        <td>特別注意事項</td>
                    </tr>
                    <tr>
                        <td style="color: black">( &nbsp;{{$specialAttention}}有 ・ &nbsp;{{$specialAttentionNo}}無 )</td>
                    </tr>
                </table>
            </td>
            <td colspan="39">
                <table>
                    <tr>
                        <td>※取り扱う際に必要と考えられる注意事項を記載</td>
                    </tr>
                    <tr>
                        <td style="color: deeppink">・避けるべき処理方法、安全のため採用すべき処理方法</td>
                    </tr>
                    <tr>
                        <td style="color: deeppink">・他の廃棄物との混合禁止</td>
                    </tr>
                    <tr>
                        <td style="color: deeppink">・粉じん爆発の可能性</td>
                    </tr>
                    <tr>
                        <td style="color: deeppink">・容器腐食性の可能性／注意点</td>
                    </tr>
                    <tr>
                        <td style="color: deeppink">・廃棄物の性状変化などに起因する環境汚染の可能性</td>
                    </tr>
                    <tr>
                        <td style="color: deeppink">・環境中に放出された後の支障発生の可能性（消毒用塩素等との反応により他の物質を生成し、水道取水障害に至る可能性等）</td>
                    </tr>
                    <tr>
                        <td style="color: deeppink">・その他</td>
                    </tr>
                    <?php if ($wdsInfor['Special_note'] == 0) :?>
                    <tr>
                        <td style="color: deeppink">・{{$wdsInfor['Special_note_text']}}</td>
                    </tr>
                    <?php endif;?>
                </table>
            </td>
        </tr>
        </tbody>
    </table>
    <p></p><br/>
    <?php
    $value10183 = "□";
    $value10184 = "□";
    $value10185 = "□";
    $value10186 = "□";
    $value10187 = "□";
    if (!empty($wdsInfor['IwOrderSample'])) {
        if (empty($wdsInfor['IwOrderSample'][0])) {
            for ($x = 0; $x < sizeof($wdsInfor['IwOrderSample']) - 1; $x++) {
                $arr = $wdsInfor['IwOrderSample'][$x + 1]['iw_order_sample_id'];
                switch ($arr) {
                    case 10183:
                        $value10183 = "☑";
                        break;
                    case 10184:
                        $value10184 = "☑";
                        break;
                    case 10185:
                        $value10185 = "☑";
                        break;
                    case 10186:
                        $value10186 = "☑";
                        break;
                    case 10187:
                        $value10187 = "☑";
                        break;
                    case 10181:
                        $value10181 = "☑";
                        break;
                    case 10182:
                        $value10182 = "☑";
                        break;
                }
            }
        } else {
            for ($x = 0; $x < sizeof($wdsInfor['IwOrderSample']); $x++) {
                $arr = $wdsInfor['IwOrderSample'][$x]['iw_order_sample_id'];
                switch ($arr) {
                    case 10183:
                        $value10183 = "☑";
                        break;
                    case 10184:
                        $value10184 = "☑";
                        break;
                    case 10185:
                        $value10185 = "☑";
                        break;
                    case 10186:
                        $value10186 = "☑";
                        break;
                    case 10187:
                        $value10187 = "☑";
                        break;
                }
            }
        }
    }
    ?>
    <div style="border: 1px">
        <table>
            <tr>
                <td>【参考】　その他の情報</td>
            </tr>
            <tr>
                <td>・ サンプル等提供（　{{$value10183}}均一ｻﾝﾌﾟﾙ有　・　{{$value10184}}不均一ｻﾝﾌﾟﾙ有　・　{{$value10185}}ｻﾝﾌﾟﾙの一部分有　・　{{$value10186}}ｻﾝﾌﾟﾙ無　・　{{$value10187}}写真有　）</td>
            </tr>
            <tr>
                <td>・ 産業廃棄物の発生工程等</td>
            </tr>
            <tr>
                <td>「廃棄物の組成・成分情報」を推定する根拠となる、使用原材料・有害物質・不純物の混入、排出場所がわかる発生工程の説明書面または工程前からの持ち込み成分の書面を添付してください。工程図への記入した書面でも可。</td>
            </tr>
            <tr>
                <td>（処理業者においては、不純物混入の可能性や廃棄物成分のブレ幅の推定、分析頻度等の判断材料となります。）</td>
            </tr>
        </table>
    </div>
</div>
</body>
</html>
